import type { AppRouteModule } from '@/router/types';
import { LAYOUT } from '@/router/constant';
import { t } from '@/hooks/web/useI18n';

const news: AppRouteModule = {
  path: '/tool',
  name: '工具',
  component: LAYOUT,
  redirect: '/tool/qcode',
  meta: {
    hideChildrenInMenu: false,
    icon: 'tabler:tool',
    title: t('工具'),
    orderNo: 10,
  },
  children: [
    {
      path: 'qcode',
      name: 'qcode',
      component: () => import('@/views/tool/qcode.vue'),
      meta: {
        title: t('二维码'),
        hideMenu: true,
      },
    },
  ],
};
export default news;
